package cn.webrx;

import java.util.Scanner;

public class Excep2 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int t = 0;
        try {
            t = sc.nextInt();
            int y = 3 /0;

        } catch (ArithmeticException e) {
            System.out.println("分母不能为0");
        } catch (NullPointerException e) {
            System.out.println("空对象");
            System.out.println("未知异常");
        } catch (Exception e) {
        }
        System.out.println(t);
        System.out.println("程序结束");

    }
}
